#include "RasterBitmap.h"
#include "DocStatsInterface.h"
#include "RasterBitmapVisitor.h"
#include <stdexcept>

void RasterBitmap::Accept(DocStatsInterface& v)
{
	if(RasterBitmapVisitor* p = dynamic_cast<RasterBitmapVisitor*>(&v) )
		p->Visit(*this);
	else
		throw std::runtime_error("Unable to visit RasterBitmap");
}